<%inherit file="../base.html" />
<%! from django.urls import reverse %>

<%def name="content()">
    % if msg:
        <h3 style="margin: 0 auto;width: 15%;margin-top: 5%">${msg}</h3><br/><br/>
    % else:
        <div style="width: 60%;margin: 0 auto;margin-top: 50px;font-size: medium">
            <div style="text-align: center">电影推荐列表</div>
            <br/>
            <div style="text-align: center">与您最相似的用户的Id是${id}，他还喜欢以下您未评分过的电影：</div>
            <br/>
            <div style="margin-left: 27%">
                % for i in list.index:
                    movieId：${video.objects.filter(movieId=i).first().movieId}&nbsp;&nbsp;
                    Title：${video.objects.filter(movieId=i).first().title}<br/>
                    Genres：${video.objects.filter(movieId=i).first().genres}<br/><br/>
                % endfor
            </div>
        </div><br/><br/>
    % endif
    <a href="${reverse('client_video')}" style="margin-left: 50%;font-size: medium">返回</a>
</%def>
